// 员工管理

/* Layout */
import Layout from '@/layout'

export default {
  path: '/employee',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employee',
      component: () => import('@/views/employee/index'),
      meta: { title: '员工', icon: 'people' }
    },
    // 给员工再添加一个子路由 用于跳转 添加员工
    //  path: 'detail/:id?',通过路由正则匹配 可以减少无效的路由规则
    {
      path: 'detail/:id?',
      name: 'employee',
      hidden: true, // 隐藏打开
      component: () => import('@/views/employee/detail'),
      meta: { title: '员工管理2', icon: 'people' }
    }
  ]
}
